package com.example.monitorsms.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.example.monitorsms.utils.LogUtils;

public class MyBrocast extends BroadcastReceiver {

    static final String ACTION = "android.intent.action.BOOT_COMPLETED";

    @Override
    public void onReceive(Context context, Intent intent) {
        LogUtils.e("MyBrocast");
        if (intent.getAction().equals(ACTION)) {
            Intent service = new Intent(context, MyService.class);
            context.startService(service);
        }
    }
}
